import request from "./request";
//搜索历史
export const GetHistory= ()=>request.get("/search/index"); 
//搜索列表
export const GetSerachlist= (params)=>request.get("/search/helper",{params});
//搜索商品列表
export const GetGoodlist= (params)=>request.get("/goods/list",{params}); 
//分类
export const GetClassify= ()=>request.get("/catalog/index"); 
//清空搜索历史
export const Clearhistory= ()=>request.post("/search/clearhistory");
//首页
export const GetHomeList = ()=>request.get("/index/index");

//获取品牌详情
export const GetPinPai=(params)=>request.get('/brand/detail',{params})
//专题
export const GetZhuanTi = (params)=>request.get("/topic/list",{params});
//分类
export const GetFenLei = ()=>request.get("/catalog/index",);
//分类细节
export const GetXiFenLei = (params)=>request.get("/catalog/current",{params});
//登录
export const GetLogin = (params)=>request.post("/auth/loginByWeb",params);
//产品明细
export const GetXiangQing = (params)=>request.get("/goods/detail",{params});
//相关产品
export const GetXiangGuan = (params)=>request.get("/goods/related",{params});
//加入购物车
export const AddGWC = (params) => request.post("/cart/add", params)
//获取购物车数据
export const GetGWC = () => request.get("/cart/index")
//点击切换商品选中状态
export const ChangeGoodsCheckedApi = (params) => request.post("/cart/checked", params)
//商品步进器
export const StepperDataApi = (params) => request.post("/cart/update", params)
//删除商品
export const DelGoodsApi = (params) => request.post("/cart/delete", params)

/*
  export const 常量名 = function(){
    return request.get("/index/index");
  }

  常量名()
*/
